package com.chen.function;

import java.util.function.Supplier;

// Supplier供给型接口
public class FunctionTest4 {
    public static void main(String[] args) {

        Supplier<Integer> supplier = () -> {
            System.out.println("get()执行了");
            return 1024;
        };

        System.out.println(supplier.get());

    }
}
